LocationArea

@Serializable
data class LocationArea(val id: Int, val name: String, val gameIndex: Int, val encounterMethodRates: List<EncounterMethodRate>, val location: Handle.Named<Location>, val names: List<Name>, val pokemonEncounters: List<PokemonEncounter>) : NamedModel(source)

Location areas are sections of locations, such as floors in a building or cave. Each area has its own set of possible Pokémon encounters. See: https://pokeapi.co/docs/v2#location-areas

Parameters

id

The identifier for this resource.

name

The name for this resource.

gameIndex

The internal id of an API resource within game data.

encounterMethodRates

A list of methods in which Pokémon may be encountered in this area and how likely the method is to occur depending on the version of the game.

location

The location this area can be found in.

names

The name of this resource listed in different languages.

pokemonEncounters

A list of Pokémon that can be encountered in this area along with version specific details about the encounter.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, gameIndex: Int, encounterMethodRates: List<EncounterMethodRate>, location: Handle.Named<Location>, names: List<Name>, pokemonEncounters: List<PokemonEncounter>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard